<%-- 
    Document   : toggleComplete
    Created on : 17.10.2010, 16:07:44
    Author     : nico
--%>

<%@page import="se.bth.ke.firstfriend.util.Util"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%
    request.setAttribute("TODO_PRIORITY_MAP", Util.TODO_PRIORITY_MAP);
%>

<script type="text/javascript">
    $("#todo-${it.todo.id} .priority-${it.oldPriority}")
        .removeClass("priority-${it.oldPriority}")
        .addClass("priority-${it.newPriority}")
        .attr("title", "Click to toggle priority (is currently ${TODO_PRIORITY_MAP[it.newPriority]})");
</script>